Skip to content

pdump: vendored libpcap, static pcap for controlplane#666

Open
sakateka wants to merge 1 commit intoyanet-platform:mainfrom
sakateka:static-pdump-cp
Open

pdump: vendored libpcap, static pcap for controlplane#666
sakateka wants to merge 1 commit intoyanet-platform:mainfrom
sakateka:static-pdump-cp

Conversation

@sakateka
Copy link
Copy Markdown
Collaborator

@sakateka sakateka commented Apr 21, 2026

pdump_cp no longer wires in DPDK’s rte_bpf via link_whole and the old libdpdk static library loop. It now takes a normal libdpdk_dep and adds a vendored libpcap 1.10.5: download (curl/wget), autotools configure with a stripped feature set, make install under the build tree, and declare_dependency with libpcap.a plus external/install/include for pcap/pcap.h.

CGO in ffi.go is updated to use those headers and to link libpcap statically (-Wl,-Bstatic -lpcap -Wl,-Bdynamic) next to libpdump_cp, so the final binary no longer depends on a separate plain -lpcap from the default search path.

@sakateka sakateka force-pushed the static-pdump-cp branch 2 times, most recently from fc10df3 to 2657f1d Compare April 22, 2026 08:32
@sakateka sakateka changed the title fix: use static build for pdump_cp pdump: optional vendored libpcap, static pcap for controlplane Apr 22, 2026
@sakateka sakateka changed the title pdump: optional vendored libpcap, static pcap for controlplane pdump: vendored libpcap, static pcap for controlplane Apr 22, 2026
@sakateka sakateka marked this pull request as ready for review April 22, 2026 09:29
@sakateka sakateka marked this pull request as draft April 22, 2026 11:46
@sakateka sakateka force-pushed the static-pdump-cp branch 2 times, most recently from 19ea48f to f36b689 Compare April 22, 2026 11:56
@sakateka sakateka marked this pull request as ready for review April 22, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant